Invalidate cairo surface if resizing is not supported for target
authorKristian Rietveld <kris@gtk.org>
Sun, 8 Aug 2010 16:17:29 +0000 (18:17 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 10 Aug 2010 19:02:31 +0000 (21:02 +0200)
commitd819bc4814742bd9afbb2852c26ea434e834b3b1
treeafa0d99440b20c807d0cde3701c8d3ee206cd041
parent9c6696dfcc04433c57fde0ee40e5562051c9be0b
Invalidate cairo surface if resizing is not supported for target

While X11 surfaces can be resized, this is not the case for Quartz
surfaces.  Instead of resizing we will invalidate the surface instead.
By giving _gdk_windowing_set_cairo_surface_size() a boolean return
value, we can signal back whether or not resizing was possible.  If not
possible, we invalidate the surface.
gdk/gdkinternals.h
gdk/gdkwindow.c
gdk/quartz/gdkdrawable-quartz.c
gdk/win32/gdkdrawable-win32.c
gdk/x11/gdkdrawable-x11.c